<?{if empty($smarty.get.brand_id)}?><?{assign var='module' value='product'}?>
<?{else}?><?{assign var='module' value='brand'}?><?{/if}?>
<div id="main">
<div class="height12"></div>
<!--左列开始-->
<div id="column_l">
<!--?{include file="$strBlock1"}?-->
<?{include file="$strBlock2"}?>
	<div class="height12"></div>
<?{include file="brand/block/top.html"}?>
</div>
<!--左列结束-->
<div id="column_r">
<!-- ============================================================= -->
<div id="column_protype">您现在的位置：<a href="<?{url url='/'}?>">首页</a> &gt;&gt; <a href="<?{url  url='/product/'}?>">产品中心</a>
	<?{if !empty($arrNavInfo)}?>
		<?{foreach from=$arrNavInfo item=arrNavInfo}?>
			&gt;&gt;&nbsp;<a href="<?{url url="/product/list.php?type_id=`$arrNavInfo.type_id`"}?>"><?{$arrNavInfo.type_title}?></a>
		<?{/foreach}?>
	<?{/if}?>	
	</div>
	<div class="product_class">
		<?{if !empty($arrChildType)}?>
		<h1>相关分类：<a href="<?{url url = "/product/list.php?brand_id=`$smarty.get.brand_id`"}?>"><span class="orange1">返回所有分类</span></a></h1>
		<div class="product_class_con">
			<ul>
			<?{foreach from=$arrChildType key=key item=arrChildType}?>
			<li><a href="<?{if !empty($arrChildType.type_link)}?><?{$arrChildType.type_link}?><?{else}?><?{url url = "/product/list.php?`$strLink`type_id=`$arrChildType.type_id`"}?><?{/if}?>"><?{$arrChildType.type_title}?>（<?{if !empty($arrChildType.nums)}?><?{$arrChildType.nums}?><?{else}?>0<?{/if}?>）</a></li>
			<?{/foreach}?>
				<div class="clr"></div>
			</ul>
		</div><div class="clr"></div>
		<?{/if}?>
		<?{if !empty($arrChildBrand)}?>
		<h1>相关品牌：<a href="<?{url url = "/product/list.php?`$strLink`brand_id=all"}?>"><span class="orange1">返回所有品牌</span></a></h1>
		<div class="product_class_con">
			<ul>
			<?{foreach from=$arrChildBrand key=key item=arrBrand}?>
				<?{if !empty($arrBrand.title)}?>
					<a href="<?{if !empty($arrBrand.link)}?><?{$arrBrand.type_link}?><?{else}?><?{url url = "/product/list.php?`$strLink`brand_id=`$arrBrand.id`"}?><?{/if}?>"><?{$arrBrand.title}?>(<?{$arrBrand.nums}?>)</a>
				<?{/if}?>
			<?{/foreach}?>
			<div class="clr"></div>
			</ul>
		</div>
		<?{/if}?>
	</div>
	<div class=clr></div>
<!-- ============================================================= -->
	<div id="prolistmark">	
		<ul>
			<form action="" method="get">
				<input type="hidden" value="<?{$smarty.get.type_id}?>" name="type_id">			
			</form>
			<li class="text">请选择排序方式：<?{if !empty($smarty.get.click)}?><font color=#FF6600>按关注度</font><?{else}?>按关注度<?{/if}?></li>
			<li class="img">
			<a href="<?{url url = "/product/list.php?`$strLink`click=1"}?>"><img src="<?{$arrGWeb.templats_root}?>/images/orderup.png" alt="升序" title="升序"></a>
			<a href="<?{url url = "/product/list.php?`$strLink`click=2"}?>"><img src="<?{$arrGWeb.templats_root}?>/images/orderdesc.png" alt="降序" title="降序"></a>
			</li>
			<li class="text"><?{if !empty($smarty.get.price)}?><font color=#FF6600>按价格</font><?{else}?>按价格<?{/if}?></li>
			<li class="img">
			<a href="<?{url url = "/product/list.php?`$strLink`price=1"}?>"><img src="<?{$arrGWeb.templats_root}?>/images/orderup.png"  alt="升序" title="升序"></a> <a href="<?{url url = "/product/list.php?`$strLink`price=2"}?>"><img src="<?{$arrGWeb.templats_root}?>/images/orderdesc.png"  alt="降序" title="降序"></a>
			</li>
			<li class="text"><?{if !empty($smarty.get.date)}?><font color=#FF6600>按上架时间</font><?{else}?>按上架时间<?{/if}?></li>
			<li class="img">
			<a href="<?{url url = "/product/list.php?`$strLink`date=1"}?>"><img src="<?{$arrGWeb.templats_root}?>/images/orderup.png"  alt="升序" title="升序"></a> <a href="<?{url url = "/product/list.php?`$strLink`date=2"}?>"><img src="<?{$arrGWeb.templats_root}?>/images/orderdesc.png"  alt="降序" title="降序"></a>
			</li>
		</ul>			
		
		<div id="prolistmark_b">
				<table>
					<tr>
					<td>  
						<table width="739" border="1">
							<tr align="center">
							<td width="35" >比较</td>
							<td width="90">编码</td>
							<td width="80">图片</td>
							<td width="60">品牌</td>
							<td width="145">名称+型号</td>
							<td width="70">市场价</td>
							<td width="70"><span style="color:#F16228;">我们的价格</span></td>
							<td width="70">促销价</td>
							<td width="40">购物车</td>
							<td width="35">收藏</td>
							</tr>
						</table>
					</td>
					</tr>					
					<?{foreach from=$arrInfoList item=arrData}?>
					<tr class="tddashed">
					<td style="border-bottom:1px dashed #ccc;">  
						<table width="739" border="0">
							<tr align="center">
							<td width="35"><input type="checkbox" name="cid" value="<?{$arrData.id}?>" onclick="compare(this);" /></td>
							<td width="90"><?{$arrData.code}?></td>
							<td width="80"><a href="<?{url url = "/product/detail.php?id=`$arrData.id`" cache = "`$arrData.file_static`"}?>"><img class="img" src="<?{if empty($arrData.thumbnail)}?><?{$arrGWeb.templats_root}?>/images/nopics.jpg<?{else}?><?{$FileCallPath}?>s/<?{$arrData.thumbnail}?><?{/if}?>" alt="<?{$arrData.brand}?><?{$arrData.model}?><?{$arrData.title}?>" onload="resizepic(this,80,80)" id='biweb' /></a></td>
							<td width="60"><?{$arrData.brand}?></td>
							<td width="145"><span class="tdproname"><a href="<?{if $arrData.linkurl!=''}?><?{$arrData.linkurl}?><?{else}?><?{url url = "/product/detail.php?id=`$arrData.id`" cache = "`$arrData.file_static`"}?><?{/if}?>" title="<?{$arrData.summary}?>" class="lista"><?{$arrData.title}?></a></span><br /><?{$arrData.model}?></td>
							<td width="70">￥<del><?{$arrData.market_price|string_format:"%.2f"}?></del></td>
							<td width="70">￥<?{$arrData.my_price|string_format:"%.2f"}?></td>
							<td width="70"><?{if !empty($arrData.my_promotion)}?>￥<?{$arrData.my_promotion|string_format:"%.2f"}?><?{else}?>暂无<?{/if}?></td>
							<td width="40"><a href="<?{url url = "/deal/index.php?id=`$arrData.id`"}?>"><img src="<?{$arrGWeb.templats_root}?>/images/shopjt.png"></a></td>
							<td width="35"><a href="JavaScript:AddFavorite('http://<?{$smarty.server.HTTP_HOST}?><?{url url = "/product/detail.php?id=`$arrData.id`" cache = "`$arrData.file_static`"}?>','<?{$arrData.brand}?><?{$arrData.model}?><?{$arrData.title}?>');">收藏</a></td>
							</tr>
						</table>
					</td>
					</tr>
					<?{/foreach}?>					
				</table>
				<div class="height12"></div>
				<div id="page"><?{$strPage}?></div>
		</div>
	</div>
</div>
</div>
<script type="text/javascript">
var rpicn = document.getElementsByName('biweb');
var rpicw = 80;
var rpicw = 80;
AttachEvent(window, 'load', resizepics);
</script>
